package com.tang.java.mysql.entity;

import lombok.*;
import lombok.experimental.Accessors;

/**
 * @author zhr
 */
@Setter
@Getter
@Accessors(chain = true)
@ToString
@NoArgsConstructor
@RequiredArgsConstructor(staticName = "of")
public class Column {
    @NonNull
    private String name;
    @NonNull
    private String dataType;
    @NonNull
    private String comment;

    private int index;
    private boolean notNull;
    private boolean autoIncrement;
    private String defaultValue;
}
